package com.movitech.mobile.cz.base.modules.config;

/**
 * 供应商大状态枚举
 * @author Jack.Gong
 * @since 2018-03-20
 *
 */
public enum SupplierBigStatusEnum {

	DEFAULT("无", 0),
	POTENTIAL("潜在", 1),
	PENDING_WATCH("待观察", 2),
	QUALIFIED("合格", 3),
	UNQUALIFIED("不合格", 4),
	BLACK_LIBRARY("黑库", 5);
	
	private String desc;
	private int code;
	
	private SupplierBigStatusEnum(String desc, int code){
		this.desc = desc;
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public static String getDesc(Integer code) {
		for (SupplierBigStatusEnum c : SupplierBigStatusEnum.values()) {
			if (c.getCode()==code) {
				return c.getDesc();
			}
		}
		return null;
	}
	
}
